home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 001437_daemon _Fri Jun 25 02:36:54 1993.msg < prev    next >
Internet Message Format  |  1994-01-24  |  6KB

  1. Received: by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  2.     id AA02638; Fri, 25 Jun 93 02:36:56 MET DST
  3. Return-Path: <chrisf@sour.sw.oz.au>
  4. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  5.     id AA02634; Fri, 25 Jun 93 02:36:54 MET DST
  6. Received: from joyce.cs.su.OZ.AU by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
  7.     id AA01590; Fri, 25 Jun 1993 02:59:50 +0200
  8. Received: from sour.sw.oz.au (for nxoc01.cern.ch) with MHSnet;
  9.     Fri, 25 Jun 1993 10:59:40 +1000
  10. Received: from sour.sw.oz.au by swift.sw.oz.au with SMTP
  11.     id AA16228; Fri, 25 Jun 93 10:58:44 AES (5.59)
  12.     (from chrisf@sour.sw.oz.au for www-talk@nxoc01.cern.ch)
  13. Received: by sour.sw.oz.au
  14.     id AA27421; Fri, 25 Jun 1993 10:58:38 +1000 (5.65c/1.34)
  15.     (from chrisf@sour.sw.oz.au for www-talk@nxoc01.cern.ch)
  16. From: chrisf@sour.sw.oz.au (Christopher Fraser)
  17. Message-Id: <199306250058.AA27421@sour.sw.oz.au>
  18. Subject: Re: launching executables through HTML files
  19. To: www-talk@nxoc01.cern.ch
  20. Date: Fri, 25 Jun 1993 10:58:37 +1000 (EST)
  21. Return-Receipt-To: chrisf@suite.sw.oz.au
  22. X-Mailer: ELM [version 2.4 PL21]
  23. Content-Type: text
  24. Content-Length: 4394      
  25.  
  26.  
  27. (This is a repost; I think the previous one got lost.)
  28.  
  29. But I thought Lou Montulli said:
  30. > > 
  31. > > What's the current status on the idea of allowing hyperlinks in HTML
  32. > > documents to cause executables to be launched?  
  33. > > 
  34. > > Also, there was the idea that maybe executables should only be allowed
  35. > > to be launched from documents residing on the local host (not over
  36. > > ftp, http, or anything else).  This seems like a pretty much useless
  37. > > restriction with the current state and expansion of transparent
  38. > > networked filesystems, though.
  39. > > 
  40. > Most network file systems still appear to be local accesses so this IS
  41. > still a valid idea.  I think it is unreasonable to expect users to be
  42. > able to make reasonable judgements about how a particular command might
  43. > effect there system.  Do YOU really think that there is no one clever
  44. > enough to fool YOU with some cryptic UNIX trojan link.  The average
  45. > user isn't competant enough to tell whether some command will destroy
  46. > his system, therefore tight control should be exercised with this
  47. > link type.  Another issue is how can a single executable link be useful
  48. > on other systems?  Why should a machine specific link be usable across
  49. > the network?  We are playing with fire with this link type, I know this
  50. > from experience.
  51. > My suggestion would be to allow "exec:" type links to be run only if
  52. > the file that contains them resides on the local filesystem.  (physical,
  53. > NFS, AFS, etc.)  Or a file that resides on a trusted host. (in a list?)  
  54. > That way there is at least some sense of security.
  55.  
  56. I think the problem with the current suggestions is that they rely on the
  57. server suppling pathnames to commands. Firstly, the namespace on a machine is
  58. particularly machine and configuration specifc; relying on a command to be in
  59. particular directory is a bit tenuous. Secondly, we want the user and site
  60. webmaster to be able to configure the way the commands are run.
  61.  
  62. A much better approach, IMHO, is to have a symbolic command
  63. name which is mapped to a particular command by the browser (client, whatever
  64. the correct terminology is). For example:
  65.  
  66.   exec:text-edit%/etc/passwd
  67.  
  68. The browser has some default mapping for text-edit, (eg: using the EDITOR 
  69. environment variable in an xterm), however the user can override this if they
  70. like (eg: if DISPLAY is set, and EDITOR is emacsclient, don't bother with
  71. the xterm). If there is no mapping for the command name, some sort of requestor
  72. thing is popped up. There is certainly scope to fetch the mapping information
  73. from some remote server, but ultimately it's up to the browser to interpret
  74. the command.
  75.  
  76. You should be able to pass arguments in some manner, eg: everything
  77. after the percent or something similar It should be up to the
  78. command to check for tainted/invalid arguments. I'd imagine most of the
  79. commands would be shell scripts which assemble a command line and exec
  80. it (Macs and PC's would have some sort of analouge).
  81.  
  82. Normally the browser should wait for the command to finish (report the exit
  83. status if nonzero etc) however it would be cute to also have a mechanism
  84. whereby the browser creates a pipe, and then runs the command with
  85. stdin/stdout attached to the other end of the pipe. The browser then talks
  86. http to the command across the pipe. The namespace of the command would
  87. be something like:
  88.  
  89.   local:pid/
  90.  
  91. When the last page onto the command's namespace was closed, the command would
  92. be killed (SIGHUP, or some additional http construct).
  93.  
  94. Now, why would we want to do this? Well, there are situations I see where it's
  95. adventageous to keep state at the remote end of a http connection. For example,
  96. you want to browse the contents of a compressed tar file, the command would
  97. unpack it somewhere, when it started up and delete it when it exited. Keeping
  98. state as the remote end is exactly the sort of thing you want to avoid across
  99. network connections, but for local commands it's fine.
  100.  
  101. Appologies if I'm reiterating what has alreday been said ... Incidently, when
  102. people have something new and interestign which is W3 related, please don't
  103. just post the http address, some of us only have netfile ftp access to outside
  104. world.  
  105.  
  106. Cheers,
  107. --
  108. Christopher Fraser              ``Insult is the lowest form of flattery''
  109. chrisf@sw.oz.au 
  110.  
  111. Cheers,
  112. --
  113. Christopher Fraser              ``Insult is the lowest form of flattery''
  114. chrisf@sw.oz.au 
  115.